//@Auth:zdl
package main

import (
	"fmt"
	"github.com/gogf/gf/g/os/gcmd"
	"github.com/gogf/gf/g/os/glog"
	"github.com/gogf/gf/g/os/gtime"
)

func main(){
	gcmd.BindHandle("date", func() {
		fmt.Println(gtime.Date())
	})
	for  {
		var input string
		_,err:=fmt.Scan(&input)
		if err!=nil {
			glog.Panic(err)
		}
		go func() {
			err:=gcmd.RunHandle(input)
			if err!=nil{
				glog.Error(err)
			}
		}()
	}

}
